<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/2
 * Time: 14:05
 */

namespace app\admin\model;


use think\Model;

class House extends Model
{
    public $attriArr=[
        "归田原居","森林康居","农宅康居","农耕乐趣"
    ];

    public $matchArr=[
        "宽带","空调","洗衣机","电视机","厨房用具","电冰箱","电风扇","淋浴","饮水机","电脑"
    ];

    public $structArr=[
        "套一","套二","套三","套四","套五","套六以上","独栋","房主同住"
    ];

    public $levelArr=[
        "一星", "二星","三星","四星","五星"
    ];

    public $typeArr=[
        "小青瓦房","土石房","平房","楼房"
    ];

    public $funStyleArr=[
       "垂钓","避暑","休闲","聚会","烧烤","登山","采摘"
    ];

    public function setFunStyleAttr($value){
        $str=implode(",",$value);
        return $str;
    }

    public function getFunStyleAttr($value){
        $arr=explode(",",$value);
        return  $arr;
    }

    public function setMatchingAttr($value){
        $str=implode(",",$value);
        return $str;
    }

    public function getMatchingAttr($value){
        $arr=explode(",",$value);
        return  $arr;
    }

    public function setStructureAttr($value){
        $str=implode(",",$value);
        return $str;
    }

    public function getStructureAttr($value){
        $arr=explode(",",$value);
        return  $arr;
    }

    public function getBannerAttr($value){
        if($value){
            $bannerArr=explode(",",$value);
            return $bannerArr;
        }

    }

    public function setRentingStyleAttr($value){
        $str=implode(",",$value);
        return $str;
    }

    public function getRentingStyleAttr($value){
        $arr=explode(",",$value);
        return  $arr;
    }
}